/**
 * *************************************
 * Copyright(c)2016 Dingdang Yixia 
 * All Rights Reserved.
 *
 * @File: AndroidAppUpgradeController.java
 * @Package: com.ddyx.rest
 * @Description:
 * 
 * @Version: V1.0
 * @Author: Yidong.Xiang
 * @Date: 2017年9月8日 上午11:13:52
 * 
 * *************************************
 */
package com.ddyx.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;

/**
 * @ClassName: AndroidAppUpgradeController.java
 * @Module: 
 * @Description: 
 * 
 * @author: Yidong.Xiang
 * @date: 2017年9月8日 上午11:13:52
 * 
 */
@Controller
@RequestMapping("/upgrade")
public class AppUpgradeController {

	
	@RequestMapping(value = "android", method = RequestMethod.GET)
	public @ResponseBody String android()
	{
		JSONObject jo =  new JSONObject();
		jo.put("v_name", "1.9");
		jo.put("v_code", 10);
		jo.put("v_size", 10);
		jo.put("force", false);
		jo.put("download_url", "http://cdn2.parllay.cn/dingdang_v10_20170908.apk");
		jo.put("update_content", "upgrade log:1)增加APP更新功能；2)修复顾客信息编辑bug。");
		return jo.toString();
	}
}
